package com.syx.friend.Controller.user;

import com.syx.commoncore.Model.PageQueryDTO;
import com.syx.commoncore.Model.TableDataInfoResult;
import com.syx.friend.Service.IUserMessageService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/message")
public class UserMessageController {

    @Resource
    IUserMessageService iUserMessageService;

    @GetMapping("/list")
    public TableDataInfoResult list(PageQueryDTO pageQueryDTO){
        return iUserMessageService.list(pageQueryDTO);
    }

}
